<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="js/vue-2.6.10.js"></script>

</head>
<body>
<div id="app">
    <ul >
        <li v-for="(u ,index) in users" :key="index">
           {{index+1}} --{{u.name}}--{{birth(u.birthday)}}
        </li>

        <ul>
            <li v-for="(index,value,key) in person">
                {{key}}---{{value}}--{{index}}
            </li>
        </ul>
    </ul>
</div>
<script type="text/javascript">
  var app=new Vue({
            el:"#app",
            data:{
              users:[
                  {"id":1,"name":"抽烟","age":5,"birthday":1425698741222},
                  {"id":2,"name":"喝酒","age":51},
                  {"id":3,"name":"烫头","age":15}
              ],
                //对象
                person:{"id":4,"name":"黄洪海","address":"贵州观山湖区"}
            },
          computed:{
               birth(dt) {
                   var date=new Date(dt);
                   return (date.getMonth()+1)+"--"+date.getDay();
               }
      }
          })
</script>
</body>
</html>